export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/manage/index',
    'pages/task/index',
    'pages/notification/index',
    'pages/my/index',
  ],
  subPackages: [
    {
      root: "package-login",
      pages: ["pages/login/index"],
    },
    {
      root: 'package-manage',
      pages: ["pages/task-create/index", "pages/ai-assist/index"],
    },
    {
      root: 'package-profile',
      pages: [
        'pages/profile/index'
      ]
    },
    {
      root: 'package-task',
      pages: [
        'pages/detail/index'
      ]
    }
  ],
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "OA Mobile",
    navigationBarTextStyle: "black",
  },
  tabBar: {
    custom: true,
    color: "#999999",
    selectedColor: "#1677ff",
    backgroundColor: "#ffffff",
    list: [
      {
        pagePath: "pages/index/index",
        text: "仪表盘",
      },
      {
        pagePath: "pages/task/index",
        text: "今日任务",
      },
      {
        pagePath: "pages/notification/index",
        text: "通知",
      },
      {
        pagePath: "pages/my/index",
        text: "我的",
      },
      {
        pagePath: "pages/manage/index",
        text: "任务管理",
      },
    ],
  },
});
